package com.powernode.money.timer;

import com.alibaba.dubbo.config.annotation.Reference;
import com.powernode.money.service.IncomeRecordService;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class TimerMapper {
    @Reference(interfaceClass = IncomeRecordService.class,version = "1.0.0" )
    private IncomeRecordService incomeRecordService;

    @Scheduled(cron = "30 57 15 * * ?")
    public void generateIncomePlan(){
        System.out.println("66666");
        incomeRecordService.generateIncomePlan();
    }
}
